<template>
  <div class="price" v-if="parseInt(is_on_sale)==2">
    <span v-if="parseInt(works_price)>0"><i class="fa fa-rmb"></i>{{works_price}}</span>
    <span v-else>议价</span>
  </div>
</template>
<script type="text/javascript">
export default {
  props:['is_on_sale','works_price'],
  data(){
    return {

    }
  }
}
</script>
<style type="text/css" scoped>
.price{
  color: rgb(255, 113, 113);
  font-weight: bold;
  display:table-cell;
  vertical-align:middle;
}
</style>
